<h1><%= @article.title %></h1>
<p><%= @article.body %></p>

<ul>
    <li><%= link_to "Edit",edit_article_path(@article) %></li>
    <li><%= link_to "Destroy", article_path(@article),data: {turbo_method: :delete,turbo_confirm: "Are are sure?"} %></li>
</ul>
<h2>Comments</h2>
<% @article.comments.each do |comment| %>
    <>
<% end %>
<h2>Add a comment:</h2>
<%= form_with model: [@article, @article.comments.build ] do |form|%>
    <p>
        <%= form.label :commenter %><br>
        <%= form.text_field :commenter %>
    </p>
    <p>
        <%= form.label :body %><br>
        <%= form.text_area :body %>
    </p>
    <p>
        <%= form.submit %>
    </p>
<% end %>